package com.lagou.model;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

public class Message implements Serializable {
    private static final long serialVersionUID = 5358296716179794224L;

    private String type;    //消息的类型代表具体业务
    private User user;      //消息的内容
    private TestPaper paper;      //考题内容
    private String path;  //导入考题路径

    private List<User> userList;    //全部学员
    private List<TestPaper>listTestPaper;     //全部考题
    private TestScore testScore;    //存放考题结果信息

    public Message() {
    }


    public Message(String type,TestScore testScore){
        this.type = type;
        this.testScore = testScore;
    }

    public Message(String type,String path){
        this.type = type;
        this.path = path;
    }

    public Message(String type) {
        this.type = type;
    }

    public Message(String type, TestPaper paper) {
        this.type = type;
        this.paper = paper;
    }

    public Message(String type, User user) {
        this.type = type;
        this.user = user;
    }

    public Message(String type,List<TestPaper>listTestPaper){
        this.type = type;
        this.listTestPaper = listTestPaper;
    }

    public Message(String type,String path,User user){
        this.type = type;
        this.path = path;
        this.user = user;
    }

    public List<TestPaper> getListTestPaper() {
        return listTestPaper;
    }

    public void setListTestPaper(List<TestPaper> listTestPaper) {
        this.listTestPaper = listTestPaper;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public TestPaper getPaper() {
        return paper;
    }

    public void setPaper(TestPaper paper) {
        this.paper = paper;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public List<User> getUserList() {
        return userList;
    }

    public void setUserList(List<User> userList) {
        this.userList = userList;
    }

    public TestScore getTestScore() {
        return testScore;
    }

    public void setTestScore(TestScore testScore) {
        this.testScore = testScore;
    }

    @Override
    public String toString() {
        return "Message{" +
                "type='" + type + '\'' +
                ", user=" + user +
                ", paper=" + paper +
                ", path='" + path + '\'' +
                ", userList=" + userList +
                ", listTestPaper=" + listTestPaper +
                '}';
    }
}
